<%-- 
    Document   : Register_Succeeded
    Created on : Dec 6, 2012, 2:14:36 PM
    Author     : Admin
--%>

<%@page import="javabean.UserBean"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.util.Date"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link href="../../CSS/Site1.css" type="text/css" rel="stylesheet"/>
    </head>
    <body>
       <div class="container">
            <div class="header_top_left">
                    <%
                        Date d = new Date();
                        DateFormat dateFormat = new SimpleDateFormat("dd/MM/YYYY");

                        out.print(dateFormat.format(d));
                    %>
                </div>               
                <%--<div class="clear"></div>--%>
                <div class="header_main" > 
                    <script type="text/javascript">
        
                        var img1="12855184861024648803.jpg"
                        var img2="12855185051828767054.jpg"
                        var img3="1285518514197142706.jpg"
                        var img4="1285518527375730281.jpg"
                        var img5="1285518537601341394.jpg"

                        var cur=Math.round(5*Math.random())
                        if (cur<=1)
                        {
                            img=img1
                        }
                        else if (cur<=2)
                        {
                            img=img2
                        }
                        else if (cur<=3)
                        {
                            img=img3
                        }
                        else if (cur<=4)
                        {
                            img=img4
                        }        
                        else
                            img=img5
                        document.write('<div class="header_main" > <img src="../../Images/'+img+'"/></div>')
              
        
                    </script>
                </div>

          

            <div style="text-align: center">
               
                
                    <%
                        UserBean user = (UserBean) session.getAttribute("userbean");
                        if (user.getUsername() != "") {
                            String username = user.getUsername();
                            out.print("Chúc mừng bạn " + username );
                            out.print("đã đăng ký thành công");
                        }
                    %>                    
                
            </div>
            <div class="clear"></div>
            <div style="text-align: center"><a href="UserFunctions.jsp">Click để trở về trang chủ</a></div>
             <div style=" background-image:url(/DeAn_WebTruyen/Images/footer_bg2.jpg) ; color: #FF0000;">
                <p >
                    © Copyright . All right reserved
                    <br />
                    Email: <a href="mailto:maiphuong0403@Gmail.com"><img src="/DeAn_WebTruyen/Images/gmail-icon.gif">MaiPhuong0403@Gmail.com</a>
                <ul style="text-align: center">
                    Power by<img src="/DeAn_WebTruyen/Images/Untitled.png" />
                </ul>
                </p>

            </div>
        </div>
    </body>
</html>
